<%@ page import="java.util.List" %>
<%@ page import="com.lanou3g.hw0517.pojo.User" %><%--
  Created by IntelliJ IDEA.
  User: dllo
  Date: 18/5/18
  Time: 下午5:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div>
    <form action="<%=request.getContextPath()%>/result" method="post">
    <table>
        <%
            List<User> users = (List<User>) request.getAttribute("users");
            for (User user : users) {
        %>
        <tr>
            <td>用户名:<%=user.getUsername()%>
            </td>
            <td>昵称:<%=user.getNickname()%>
            </td>
            <td>爱好:<%=user.getHobby()%>
            </td>
            <td>性别:<%=user.getSex()%>
            </td>
        </tr>

        <%
            }
        %>

    </table>
    </form>
</div>
</body>
</html>
